﻿import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;


public class Test001 {

    public static void main(String[] args) {
        try {
         String[] files = new String[10];
         files[0] = "D:\\Log\\mines_ha_20090727.1026389.1027388.1370";
         files[1] = "D:\\Log\\mines_ha_20090727.10264280.10265279.10845";
         files[2] = "D:\\Log\\mines_ha_20090727.10265280.10266279.10846";
         files[3] = "D:\\Log\\mines_ha_20090727.10266280.10267279.10847";
         files[4] = "D:\\Log\\mines_ha_20090727.10267280.10268279.10848";
         files[5] = "D:\\Log\\mines_ha_20090727.10268280.10269279.10849";
         files[6] = "D:\\Log\\mines_ha_20090727.10269280.10270279.10850";
         files[7] = "D:\\Log\\mines_ha_20090727.10270280.10271279.10851";
         files[8] = "D:\\Log\\mines_ha_20090727.10271280.10272279.10852";
         files[9] = "D:\\Log\\mines_ha_20090727.10272280.10273279.10853";
//           
         String line;
         int count = 0;
         long runtime = 0;


          
         System.out.println("\nStart BufferReader -----------------------");
         runtime = System.currentTimeMillis();
         
         for (int i = 0; i < files.length; i ++) {
             BufferedReader bufreader = new BufferedReader(new FileReader(new File(files[i])));    
             while ((line = bufreader.readLine()) != null) {
                 System.out.print(line.length());
             }
             System.out.println();
             bufreader.close();
         }
         
         System.out.println("\n----------------------------" + (System.currentTimeMillis() - runtime));
         
         
        } catch (FileNotFoundException e) {
         // TODO Auto-generated catch block
         System.out.println("FileNotFoundException");
         e.printStackTrace();         
        } catch (IOException e) {
         // TODO Auto-generated catch block
            System.out.println("IOException");
         e.printStackTrace();
        }
       }
}
